<div class="overflow">
<div class="content">
<h3>Lisa Uus Hobune</h3>
<? if(isset($_REQUEST['teade']))echo $_REQUEST['teade'];?>
<form action="?" method="post">
<table width="300px" style="min-width:300px;" border="0">
  <tr>
    <th scope="row">Nimi:</th>
    <td><input type="text" name="nimi" /></td>
  </tr>
  <tr>
    <th scope="row">Vanus:</th>
    <td><input type="text" name="vanus" /></td>
  </tr>
  <tr>
    <th scope="row">Sugu[M/N]:</th>
    <td><input type="text" name="sugu" /></td>
  </tr>
  <tr>
    <th scope="row">Muud&nbsp;omadused:</th>
    <td><input type="text" name="muud" /></td>
  </tr>
  <tr class="cell">
    <th scope="row"></th>
    <td><img src="images/Add.png" class="icon" style="left:115px; bottom:12px;"/><input type="submit" value="Lisa Hobune" class="lisahobu" /></td>
  </tr>
</table>
</form>
</div>

<?php 
foreach($hobused as $hobu): ?>
         <div class="content">
		   <h3><?=$hobu->nimi ?></h3><br />
           <div class="kustuta"><a href="?lisahobu&kustutaid=<?=$hobu->hobu_id?>"><img src="images/Delete.png" width="20px" /></a></div>
           Sugu: <? $sugu = $hobu->sugu; if($sugu == 'M')echo "Meessoost"; else echo "Naisoost";?><br />
           Vanus: <?=$hobu->vanus ?><br />
           Muud omadused: <?=$hobu->omadused ?>
         </div>
<?php endforeach; ?>
</div>